package repository

import (
	"context"
	"zxstudy.com/domain/entity"
)

type CarRepository interface {
	Create(ctx context.Context, car *entity.Car) (*entity.Car, error)
	Delete(ctx context.Context, car *entity.Car) error
	Get(ctx context.Context, id int) (*entity.Car, error)
	Cars(ctx context.Context) ([]*entity.Car, error)
}